using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using webapp4U.BOL;

namespace webapp4U.UI
{
    public partial class _Default : System.Web.UI.Page
    {
        int BosuutapID = -1;
        protected void Page_Load(object sender, EventArgs e)
        {
            BosuutapID  = Globals.GetIntFromQueryString("BosuutapID");
            if (BosuutapID > 0)
            {
                Bosuutap obj = Bosuutap.GetBosuutapByID(BosuutapID);
                if (Globals.LangVietNam())
                    Title.TitleName = obj.Title;
                else
                    Title.TitleName = obj.Title_en;

                // Load thong tin doanh nghiep
                if (obj.CompanyID > 0)
                { 
                    Companies co = Companies.GetCompaniesByID(obj.CompanyID);
                    lblCompanyName.Text = co.CompanyName;
                    lblEmail.Text = co.Email;
                    lblAddress.Text = co.Address;
                    lblPhone.Text = co.Phone;
                    lblFax.Text = co.Fax;
                    lblDesc.Text = co.Description;
                }
            }

        }

    }
}